package com.just.bz_back.service.impl;

import com.just.bz_back.dao.LocationMapper;
import com.just.bz_back.model.Location;
import com.just.bz_back.model.Type;
import com.just.bz_back.service.LocationService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author : baibaiwucahng
 * @date : 2019/8/31  15:33
 */
@Service
public class LocationServiceImpl implements LocationService {

    @Resource
    private LocationMapper locationMapper;
    @Override
    public List<Location> getListByTypeId(int typeId) {
        List<Location> locations = locationMapper.selectByTypeId(typeId);
        return locations;
    }
}
